﻿using System.Collections.Generic;

namespace Silent.API.LastFm.Requests
{
    public abstract class RequestBase<T> : IRequestable<T>
    {
        protected List<QueryParameter> parameters;

        protected RequestBase(string apiKey, string method)
        {
            parameters = new List<QueryParameter>
                {
                    new QueryParameter(QueryConstants.PREFIX_METHOD, method),
                    new QueryParameter(QueryConstants.PREFIX_API_KEY, apiKey)
                };
        }

        public abstract T Request();
    }
}
